import Taro from '@tarojs/taro'

import { TOKEN } from 'src/constants'

export const getToken = (): string => Taro.getStorageSync(TOKEN)

export const setToken = (token: string) => Taro.setStorageSync(TOKEN, token)

export const removeToken = () => Taro.removeStorageSync(TOKEN)
